<?php


class FileLogger implements Logger
{


    private $filePath;

    public function __construct($filePath)
    {
        $this->filePath = $filePath;
    }

    public function log($message)
    {
        file_put_contents($this->filePath,$message,FILE_APPEND);
    }
}